package cn.manager.travel.service.impl;

import cn.manager.travel.dao.ClientDao;
import cn.manager.travel.dao.impl.ClientDaoImpl;
import cn.manager.travel.domain.Laboratory;
import cn.manager.travel.domain.Major;
import cn.manager.travel.domain.New;
import cn.manager.travel.domain.Teacher;
import cn.manager.travel.service.ClientService;

import java.util.List;

public class ClientServiceImpl implements ClientService {
	
	private ClientDao clientDao = new ClientDaoImpl();
	
	@Override
	public List<New> showNews(int i) {
		return clientDao.showNews(i);
	}
	
	@Override
	public List<New> showNewList() {
		return clientDao.showNewList();
	}
	
	@Override
	public New showNew(String nID) {
		return clientDao.showNew(Integer.parseInt(nID));
	}
	
	@Override
	public List<Major> showMajorList() {
		return clientDao.showMajorList();
	}
	
	@Override
	public List<Major> showMajors(int i) {
		return clientDao.showMajors(i);
	}
	
	@Override
	public Major showMajor(String mID) {
		return clientDao.showMajor(Integer.parseInt(mID));
		
	}
	
	@Override
	public List<Teacher> showTeachers() {
		return clientDao.showTeachers();
	}
	
	@Override
	public Teacher showTeacher(String tID) {
		return clientDao.showTeacher(Integer.parseInt(tID));
	}
	
	@Override
	public List<Laboratory> showLaboratories() {
		return clientDao.showLaboratories();
	}
	
	@Override
	public Laboratory showLaboratory(String lID) {
		return clientDao.showLaboratory(Integer.parseInt(lID));
		
	}
}
